package com.qf.aopLog4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(SpringConfiguration.class);
        IComputerFactory computerFactory = (IComputerFactory)applicationContext.getBean("computerFactory");
        computerFactory.saleComputer("千锋");
        MouseFactory mouseFactory = (MouseFactory)applicationContext.getBean("mouseFactory");
        mouseFactory.saleMouse();
        //日志文件输出到D:\IntelliJ IDEA 2018.3.6\wwproject\java01_day12Spring_AOP下的java2001.log中
    }
}
